notebook: show tabs when asked to
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Jan 2016 19:35:58 +0000 (14:35 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 17 Jan 2016 19:35:58 +0000 (14:35 -0500)
gtk_notebook_set_show_tabs must make the header gadget
visible when show_tabs is TRUE, not the other way around.

https://bugzilla.gnome.org/show_bug.cgi?id=760596

gtk/gtknotebook.c

index 3b9f7d46434e9f407e8446fca0a4447ee47acb5f..d5ac77c788b4d0e529a39b8978aaf77f4a2ba5be 100644 (file)
@@ -6953,7 +6953,7 @@ gtk_notebook_set_show_tabs (GtkNotebook *notebook,
     {
       gtk_widget_set_can_focus (GTK_WIDGET (notebook), TRUE);
       gtk_notebook_update_labels (notebook);
-      gtk_css_gadget_set_visible (priv->header_gadget, FALSE);
+      gtk_css_gadget_set_visible (priv->header_gadget, TRUE);
     }
 
   for (i = 0; i < N_ACTION_WIDGETS; i++)